﻿using Model;

namespace IBLL
{
    public interface IStudentBLL
    {
        /// <summary>
        /// 新增学生
        /// </summary>
        /// <param name="student"></param>
        /// <returns></returns>
        Task<int> AddStudent(Student student);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        Student Login(string name,string pwd);
        /// <summary>
        /// 显示学生+分页
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        dynamic ShowStudent(int PageIndex,int PageSize);

        IQueryable<Student> GetStudents();
    }
}
